package com.jiashihui.schema_lgorithm.spring.aspect.proxy;

/**
 * @author jiashihui
 * @describe: 比较器实现类
 * @date 2019/03/25
 */
public class ComparatorServiceImpl implements IComparatorService {

    @Override
    public String comparator(int a, int b) {
        if (a > b) {
            System.out.println(a + "比" + b + "大");
            return a + "比" + b + "大";
        } else if (a < b) {
            System.out.println(a + "比" + b + "小");
            return a + "比" + b + "小";
        } else {
            System.out.println(a + "等于" + b);
            return a + "等于" + b;
        }
    }
}
